<?php
/*
Copy this file into your current active theme's directory to customize this template

This template displays one Flickr photo set
*/
global $TanTanFlickrPlugin;
?>

<?php include($TanTanFlickrPlugin->getDisplayTemplate('/photoalbum-nav.html'));?>

<h2><?php echo $album['title']?></h2>

<div id="highlight">
	<?php echo TanTanFlickrDisplay::photo($photos[$album['primary']], array('size' => 'Small', 'album' => $album));?>

<p><?php echo html_entity_decode($album['description'])?></p>
<p class="meta">
<?php echo count($photos)?> Photos | <a href="album/<?php echo $album['id']?>/<?php echo $album['pagename']?>" onclick="return openSlideShow('<?php echo $album['id']?>')">View as slideshow &gt;</a>
</p>
<br clear="all" />
</div>


<div id="photos" class="photos">
<?php foreach ($photos as $photo)
	echo TanTanFlickrDisplay::photo($photo, array(
		'size' => 'Square',
		'album' => $album));
?>
</div>
<div class="flickr-meta-links">
<a href="http://www.flickr.com/photos/<?php echo $album['owner'];?>/sets/<?php echo $album['id'];?>/" target="_blank">View this album on Flickr</a>
</div>
